<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/ExportBusiness/searchfirst.css">
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>外销</span>
            <div class="titleright">
                <button id="exportBtn" class="layui-btn layui-btn-sm" style="margin-right:1em;" lay-filter="contractStatistics">
                    <span>统计</span>
                    <i class="layui-icon layui-icon-triangle-d"></i>
                </button>
            </div>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <form class="layui-form layui-from-pane" action="" id="editor-form" lay-filter="editor-form">
                            <div class="layui-inline">
                                <label class="layui-form-label">单据类型</label>
                                <div class="layui-input-inline">
                                    <select name="status">
                                        <option value=""></option>
                                        <option value="1">草稿箱</option>
                                        <option value="2">待批箱</option>
                                        <option value="3">已批箱</option>
                                        <option value="6">终止箱</option>
                                        <option value="4">完成箱</option>
                                        <option value="5">垃圾箱</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">单据信息</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="billNo" id="billNo" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">产品编码</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="productCode" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">规格编码</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="specificationCode" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">签约日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" id="signingDateStart" name="signingDateStart" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" id="signingDateEnd" name="signingDateEnd" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">签约公司</label>
                                <div class="layui-input-inline">
                                    <select name="signingCompanyCode" id="signingCompanyCode" lay-search>
                                        <option value=""></option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">出运日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="carryTimeStart" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="carryTimeEnd" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属操作员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="operationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="salesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门操作员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptOperationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门业务员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptSalesmanCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">币种</label>
                                <div class="layui-input-inline">
                                    <select name="currencyCode" id="currencyCode" lay-search>
                                        <option value=""></option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">是否补货</label>
                                <div class="layui-input-inline">
                                    <select name="whetherToReplenish" id="whetherToReplenish" lay-search>
                                        <option value=""></option>
                                        <option value="0">否</option>
                                        <option value="1">是</option>
                                    </select>
                                </div>
                            </div>
                            <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submitform" style="margin-left: 10px">搜索</button>
                            <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear">重置</button>
                        </form>
                        <div class="layui-card" style="text-align:right;margin-right:2em;">
                            <button class="layui-btn layui-btn-sm" lay-filter="printfn"
                                    lay-dropdown="{showBy: 'hover',align:'left', menus: [
                                    {layIcon: 'layui-icon-print', txt: 'proforma_invoice', event:'exportReport'},
                                    {layIcon: 'layui-icon-print', txt: '采购申请表_旧', event:'purchaseRequestReport_old'},
                                    {layIcon: 'layui-icon-print', txt: '采购申请表_新', event:'purchaseRequestReport_new'},
                                    {layIcon: 'layui-icon-print', txt: '国内销售合同模版', event:'exportReportDomestic'}
                                    ]}">
                                <span>打印</span>
                                <i class="layui-icon layui-icon-triangle-d"></i>
                            </button>
                        </div>
                        <table class="layui-table" id="exportselect" lay-filter="exporttable"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="exporttoolbar">
    {{# if(isOrderInquiryTab){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="new" style="margin-left: 10px" lay-event="news">新建合同</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="copys" style="margin-left: 10px" lay-event="copys">复制合同</a>
    {{# if(isMsn=="是"){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="checkSubmit" style="margin-left: 10px" lay-event="checkSubmit">一键提交</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="checkAdopt" style="margin-left: 10px" lay-event="checkAdopt">一键通过</a>
    {{# } }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="salesmanUpdate" style="margin-left: 10px" lay-event="salesmanUpdate">转移</a>
    {{# } }}
</script>

<div class="layui-row" id="salesmanUpdateWindow" style="display:none;">
    <div class="layui-col-md11 associated-form">
        <form class="layui-form layui-from-pane"  style="margin-top:20px" id="share-form" lay-filter="share-form">
            <div class="layui-row" >
                <div class="layui-col-xs3">
                    <label class="layui-form-label" style="min-width: auto;line-height: 2em">业务员</label>
                </div>
                <div class="layui-col-xs6">
                    <div id="salesmanCodeUpdate" class="xm-select-demo" style="width: 230px"></div>
                    <input type="hidden" name="salesmanNameUpdate" id="salesmanNameUpdate">
                </div>
                <div class="layui-col-xs3">
                    <button class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="shareSubmit" id="shareSubmit">提交</button>
                </div>
            </div>

        </form>
    </div>
</div>

<script type="text/html" id="exporteditor">
    {{# if(d.statusStr=='草稿箱' ||d.statusStr=='待批箱' ||d.statusStr=='已批箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>
    {{# } }}
    {{# if(d.statusStr=='草稿箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="submits">提交审批</a>
    {{# } }}
    {{# if(d.statusStr=='待批箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal">审批中</a>
    {{# } }}
    <%--{{# if(d.statusStr=='待批箱' ||d.statusStr=='已批箱' ||d.statusStr=='完成箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="backtothe">审批退回</a>
    {{# } }}--%>
    {{# if(d.statusStr=='已批箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="complete">完成</a>
    {{# } }}
    {{# if(d.statusStr=='草稿箱' ||d.statusStr=='垃圾箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delect">删除</a>
    {{# } }}
    {{# if(d.statusStr=='垃圾箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="reduction">还原</a>
    {{# } }}
</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/ExportBusiness/export.js"></script>